//
//  RSWOperation+Login.h
//  RSW.IOS
//
//  Created by zhaiqiuqiu on 16/10/24.
//  Copyright © 2016年 com.rs. All rights reserved.
//

@class FieldDescript;
#import "RSWDataOperation.h"

extern NSString *const RSWLoginOperationCheckVersionStatusTip;

extern NSString *const RSWLoginOperationStartLoadBaseStatusTip;

extern NSString *const RSWLoginOperationFinishLoadBaseStatusTip;

extern NSString *const RSWLoginOperationLoadUserInfoStatusTip;

extern NSString *const RSWLoginOperationLoadAddressBookStatusTip;

extern NSString *const RSWLoginOperationLoadBaseDataDicStatusTip;

extern NSString *const RSWLoginOperationLoadBaseDataMenuStatusTip;

extern NSString *const RSWLoginOperationLoadBaseDataWorkflowStatusTip;

@protocol RSWLoginOperationDelegate<XLGLoginCommonProcess>

- (BOOL)loginCheckLocalTimeLessThanServiceTime:(long long)serviceTime;

@end

@interface RSWDataOperation(Login)

- (void)loginByAccount:(NSString*)account password:(NSString*)password completion:(void(^)(NSInteger nResult,NSError *error))completion;

- (void)loginOutCompletion:(void(^)(NSInteger nResult))completion;

-(XLGResult*)refreshEntAddressBookWithToken:(NSString*)token deptId:(NSString*)deptId;

-(XLGResult*)refreshDictionaryWithToken:(NSString*)token;

-(XLGResult*)refreshMenuWithToken:(NSString*)token;

-(XLGResult*)refreshWorkflowWithToken:(NSString*)token;

-(BOOL)refreshMyInfo;

- (void)synDataCompletion:(void(^)(NSInteger nResult,BOOL bResult,NSError *error))completion;

-(void)getDictionaryList:(FieldDescript*)fieldDescript completion:(void (^)(NSInteger, NSArray *))completion;
@end
